from appium.webdriver.common.mobileby import MobileBy

from test_lubo.app_PO4.page.base_page import BasePage


class AddContactPage(BasePage):
    def click_addmember_menual(self):
        #点击手动输入添加
        from test_lubo.app_PO4.page.edit_member_page import EditMemberPage
        # self.driver.find_element(MobileBy.XPATH, "//*[@text='手动输入添加']").click()
        self.find_and_click(MobileBy.XPATH, "//*[@text='手动输入添加']")
        return EditMemberPage(self.driver)

    def get_toast_result(self):
        result = self.get_toast_text()
        # result = self.driver.find_element(MobileBy.XPATH,"//*[@class='android.widget.Toast']").get_attribute("text")
        return result
